﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class foodNPC:NPC
    {
        private string name;

        public string Name
        {
            get { return this.name; }
            set { this.name = value; }

        }

        public foodNPC(string name, NpcType npc) : base(name, npc)
        {
            this.name = name;

        }

        public override void work()
        {

            Console.WriteLine("我叫{0}   你要买食物吗？", this.name);


        }

    }
}
